Full source code website bán hàng thương mại điện tử gần giống shopee
473.510 lượt xem;
- ckfinder.html
- ckfinder /
- filemanage /
- project /
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CKFinder</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="robots" content="noindex, nofollow" />
7 <script type="text/javascript" src="ckfinder.js"></script>
8 <style type="text/css">
9 body, html, iframe, #ckfinder {
10 margin: 0;
11 padding: 0;
12 border: 0;
13 width: 100%;
14 height: 100%;
15 overflow: hidden;
16 }
17 </style>
18 </head>
19 <body class="CKFinderFrameWindow">
20 <div id="ckfinder"></div>
21 <script type="text/javascript">
22 //<![CDATA[
23 (function()
24 {
25 var config = {};
26 var get = CKFinder.tools.getUrlParam;
27 var getBool = function( v )
28 {
29 var t = get( v );
30
31 if ( t === null )
32 return null;
33
34 return t == '0' ? false : true;
35 };
36
37 var tmp;
38 if ( tmp = get( 'configId' ) )
39 {
40 var win = window.opener || window;
41 try
42 {
43 while ( ( !win.CKFinder || !win.CKFinder._.instanceConfig[ tmp ] ) && win != window.top )
44 win = win.parent;
45
46 if ( win.CKFinder._.instanceConfig[ tmp ] )
47 config = CKFINDER.tools.extend( {}, win.CKFinder._.instanceConfig[ tmp ] );
48 }
49 catch(e) {}
50 }
51
52 if ( tmp = get( 'basePath' ) )
53 CKFINDER.basePath = tmp;
54
55 if ( tmp = get( 'startupPath' ) || get( 'start' ) )
56 config.startupPath = decodeURIComponent( tmp );
57
58 config.id = get( 'id' ) || '';
59
60 if ( ( tmp = getBool( 'rlf' ) ) !== null )
61 config.rememberLastFolder = tmp;
62
63 if ( ( tmp = getBool( 'dts' ) ) !== null )
64 config.disableThumbnailSelection = tmp;
65
66 if ( tmp = get( 'data' ) )
67 config.selectActionData = tmp;
68
69 if ( tmp = get( 'tdata' ) )
70 config.selectThumbnailActionData = tmp;
71
72 if ( tmp = get( 'type' ) )
73 config.resourceType = tmp;
74
75 if ( tmp = get( 'skin' ) )
76 config.skin = tmp;
77
78 if ( tmp = get( 'langCode' ) )
79 config.language = tmp;
80
81 if ( typeof( config.selectActionFunction ) == 'undefined' )
82 {
83 // Try to get desired "File Select" action from the URL.
84 var action;
85 if ( tmp = get( 'CKEditor' ) )
86 {
87 if ( tmp.length )
88 action = 'ckeditor';
89 }
90 if ( !action )
91 action = get( 'action' );
92
93 var parentWindow = ( window.parent == window ) ? window.opener : window.parent;
94 switch ( action )
95 {
96 case 'js':
97 var actionFunction = get( 'func' );
98 if ( actionFunction && actionFunction.length > 0 )
99 config.selectActionFunction = parentWindow[ actionFunction ];
100
101 actionFunction = get( 'thumbFunc' );
102 if ( actionFunction && actionFunction.length > 0 )
103 config.selectThumbnailActionFunction = parentWindow[ actionFunction ];
104 break ;
105
106 case 'ckeditor':
107 var funcNum = get( 'CKEditorFuncNum' );
108 if ( parentWindow['CKEDITOR'] )
109 {
110 config.selectActionFunction = function( fileUrl, data )
111 {
112 parentWindow['CKEDITOR'].tools.callFunction( funcNum, fileUrl, data );
113 };
114
115 config.selectThumbnailActionFunction = config.selectActionFunction;
116 }
117 break;
118
119 default:
120 if ( parentWindow && parentWindow['FCK'] && parentWindow['SetUrl'] )
121 {
122 action = 'fckeditor' ;
123 config.selectActionFunction = parentWindow['SetUrl'];
124
125 if ( !config.disableThumbnailSelection )
126 config.selectThumbnailActionFunction = parentWindow['SetUrl'];
127 }
128 else
129 action = null ;
130 }
131 config.action = action;
132 }
133
134 // Always use 100% width and height when nested using this middle page.
135 config.width = config.height = '100%';
136
137 var ckfinder = new CKFinder( config );
138 ckfinder.replace( 'ckfinder', config );
139 })();
140 //]]>
141 </script>
142 </body>
143 </html>
2 <html>
3 <head>
4 <title>CKFinder</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="robots" content="noindex, nofollow" />
7 <script type="text/javascript" src="ckfinder.js"></script>
8 <style type="text/css">
9 body, html, iframe, #ckfinder {
10 margin: 0;
11 padding: 0;
12 border: 0;
13 width: 100%;
14 height: 100%;
15 overflow: hidden;
16 }
17 </style>
18 </head>
19 <body class="CKFinderFrameWindow">
20 <div id="ckfinder"></div>
21 <script type="text/javascript">
22 //<![CDATA[
23 (function()
24 {
25 var config = {};
26 var get = CKFinder.tools.getUrlParam;
27 var getBool = function( v )
28 {
29 var t = get( v );
30
31 if ( t === null )
32 return null;
33
34 return t == '0' ? false : true;
35 };
36
37 var tmp;
38 if ( tmp = get( 'configId' ) )
39 {
40 var win = window.opener || window;
41 try
42 {
43 while ( ( !win.CKFinder || !win.CKFinder._.instanceConfig[ tmp ] ) && win != window.top )
44 win = win.parent;
45
46 if ( win.CKFinder._.instanceConfig[ tmp ] )
47 config = CKFINDER.tools.extend( {}, win.CKFinder._.instanceConfig[ tmp ] );
48 }
49 catch(e) {}
50 }
51
52 if ( tmp = get( 'basePath' ) )
53 CKFINDER.basePath = tmp;
54
55 if ( tmp = get( 'startupPath' ) || get( 'start' ) )
56 config.startupPath = decodeURIComponent( tmp );
57
58 config.id = get( 'id' ) || '';
59
60 if ( ( tmp = getBool( 'rlf' ) ) !== null )
61 config.rememberLastFolder = tmp;
62
63 if ( ( tmp = getBool( 'dts' ) ) !== null )
64 config.disableThumbnailSelection = tmp;
65
66 if ( tmp = get( 'data' ) )
67 config.selectActionData = tmp;
68
69 if ( tmp = get( 'tdata' ) )
70 config.selectThumbnailActionData = tmp;
71
72 if ( tmp = get( 'type' ) )
73 config.resourceType = tmp;
74
75 if ( tmp = get( 'skin' ) )
76 config.skin = tmp;
77
78 if ( tmp = get( 'langCode' ) )
79 config.language = tmp;
80
81 if ( typeof( config.selectActionFunction ) == 'undefined' )
82 {
83 // Try to get desired "File Select" action from the URL.
84 var action;
85 if ( tmp = get( 'CKEditor' ) )
86 {
87 if ( tmp.length )
88 action = 'ckeditor';
89 }
90 if ( !action )
91 action = get( 'action' );
92
93 var parentWindow = ( window.parent == window ) ? window.opener : window.parent;
94 switch ( action )
95 {
96 case 'js':
97 var actionFunction = get( 'func' );
98 if ( actionFunction && actionFunction.length > 0 )
99 config.selectActionFunction = parentWindow[ actionFunction ];
100
101 actionFunction = get( 'thumbFunc' );
102 if ( actionFunction && actionFunction.length > 0 )
103 config.selectThumbnailActionFunction = parentWindow[ actionFunction ];
104 break ;
105
106 case 'ckeditor':
107 var funcNum = get( 'CKEditorFuncNum' );
108 if ( parentWindow['CKEDITOR'] )
109 {
110 config.selectActionFunction = function( fileUrl, data )
111 {
112 parentWindow['CKEDITOR'].tools.callFunction( funcNum, fileUrl, data );
113 };
114
115 config.selectThumbnailActionFunction = config.selectActionFunction;
116 }
117 break;
118
119 default:
120 if ( parentWindow && parentWindow['FCK'] && parentWindow['SetUrl'] )
121 {
122 action = 'fckeditor' ;
123 config.selectActionFunction = parentWindow['SetUrl'];
124
125 if ( !config.disableThumbnailSelection )
126 config.selectThumbnailActionFunction = parentWindow['SetUrl'];
127 }
128 else
129 action = null ;
130 }
131 config.action = action;
132 }
133
134 // Always use 100% width and height when nested using this middle page.
135 config.width = config.height = '100%';
136
137 var ckfinder = new CKFinder( config );
138 ckfinder.replace( 'ckfinder', config );
139 })();
140 //]]>
141 </script>
142 </body>
143 </html>